﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CalendarMenu.ascx.cs" Inherits="Dune.Web.Controls.Menu.CalendarMenu" %>
<div class="rounded">
<table cellspacing="0" cellpadding="0">
<tr class="ui-datepicker-links">
    <td class="ui-datepicker-prev"><a><</a></td>
    <td class="ui-datepicker-header">
    <asp:DropDownList runat="server" ID="lbMonth" CssClass="ui-datepicker-new-month" ></asp:DropDownList>
    <asp:DropDownList runat="server" ID="lbYear"  CssClass="ui-datepicker-new-year"></asp:DropDownList>
   <%-- <select class="ui-datepicker-new-month" onclick="jQuery.datepicker._clickMonthYear('#ui-datepicker');" onchange="jQuery.datepicker._selectMonthYear('#ui-datepicker', this, 'M');">
</select>
<select class="ui-datepicker-new-year" onclick="jQuery.datepicker._clickMonthYear('#ui-datepicker');" onchange="jQuery.datepicker._selectMonthYear('#ui-datepicker', this, 'Y');">
</select>--%></td>
    <td class="ui-datepicker-next"><a>></a></td>
</tr>
</table>
<table class="ui-datepicker" cellspacing="0" cellpadding="0">
<thead>
<tr class="ui-datepicker-title-row">
<asp:Repeater runat="server" ID="rprTitle">
<ItemTemplate>
    <td><span title='<%# DataBinder.Eval(Container.DataItem, "Name")%>'><%# DataBinder.Eval(Container.DataItem, "ShortName")%></span></td>
</ItemTemplate>
</asp:Repeater>
</tr>
</thead>
<asp:Repeater runat="server" ID="rprMenu">
<ItemTemplate>
    <tr class="ui-datepicker-days-row">
    <asp:Repeater DataSource='<%# DataBinder.Eval(Container.DataItem, "Childrens")%>' runat="server" ID="rprSubMenu" OnItemDataBound="rprSubMenu_ItemDataBound">
        <ItemTemplate>
            <td class="ui-datepicker-days-cell" onmouseout="jQuery(this).removeClass('ui-datepicker-days-cell-over');" onmouseover="jQuery(this).addClass('ui-datepicker-days-cell-over');">
                <asp:HyperLink runat="server" ID="hlItem" Visible="false" NavigateUrl="~/Events.aspx"><%# DataBinder.Eval(Container, "DataItem.Name")%></asp:HyperLink>
                <asp:Label runat="server" ID="lblItem" Visible="false"><%# DataBinder.Eval(Container, "DataItem.Name")%></asp:Label>
            </td>
        </ItemTemplate>
    </asp:Repeater>
    </tr>
</ItemTemplate>        
</asp:Repeater>
</table>
</div>